import java.util.*;
import org.rythmengine.template.TemplateBase;
import java.io.*;

public class error_html__R_T_C__ extends zj_zj_work_projects_all_mine_summerboot_html___main_template_html__R_T_C__ {//<extended_resource_key>C:/zj/zj_work_projects_all/mine/summerboot/html///main_template.html</extended_resource_key>

	public java.lang.String __getName() {
		return "error.html";
	}

	protected void __setup() {
		if (__isDefVal(exception)) {exception = __get("exception",Exception.class) ;}
	}

	protected Exception exception=null; //line: 2

	protected java.lang.String __renderArgName(int __pos) {
		int __p = 0;
		if (__p++ == __pos) return "exception";
		throw new ArrayIndexOutOfBoundsException();
	}

	protected java.util.Map<java.lang.String, java.lang.Class> __renderArgTypeMap() {
		java.util.Map<java.lang.String, java.lang.Class> __m = new java.util.HashMap<String, Class>();
		__m.put("exception", Exception.class);
		return __m;
	}

	@SuppressWarnings("unchecked")
	public TemplateBase __setRenderArgs(java.util.Map<java.lang.String, java.lang.Object> __args) {
		if (null == __args) throw new NullPointerException();
		if (__args.isEmpty()) return this;
		super.__setRenderArgs(__args);
		if (__args.containsKey("exception")) this.exception = __get(__args,"exception",Exception.class);
		return this;
	}

	@SuppressWarnings("unchecked") public TemplateBase __setRenderArgs(java.lang.Object... __args) {
		int __p = 0, __l = __args.length;
		if (__p < __l) { 
			Object v = __args[__p++]; 
			exception = __safeCast(v, Exception.class); 
			__renderArgs.put("exception",exception);
		}
		return this;
	}

	protected java.lang.Class[] __renderArgTypeArray() {
		return new java.lang.Class[]{Exception.class, };
	}

	@SuppressWarnings("unchecked") @Override public TemplateBase __setRenderArg(java.lang.String __name, java.lang.Object __arg) {
		if ("exception".equals(__name)) this.exception = __safeCast(__arg, Exception.class);
		super.__setRenderArg(__name, __arg);
		return this;
	}

	@SuppressWarnings("unchecked") public TemplateBase __setRenderArg(int __pos, java.lang.Object __arg) {
		int __p = 0;
				if (__p++ == __pos) { 
			Object v = __arg; 
			exception = __safeCast(v, Exception.class); 
			__renderArgs.put("exception", exception);
		}
		if(0 == __pos) __setRenderArg("arg", __arg);
		return this;
	}





	public org.rythmengine.utils.TextBuilder build(){
		buffer().ensureCapacity(268);
p("<h2 class=\"page-header\">出错啦~</h2>\n<div class=\"alert alert-danger\" role=\"alert\">\n"); //line: 6

if (org.rythmengine.utils.Eval.eval(exception != null)) { //line: 5
p(" "); //line: 6

try{pe(exception.getMessage());} catch (RuntimeException e) {__handleTemplateExecutionException(e);}  //line: 6
} //line: 7
p("\n<a class=\"btn btn-success\" href=\""); //line: 8
{ //line: 8
	org.rythmengine.template.ITag.__ParameterList _pl = null;  //line: 8
	_pl = new org.rythmengine.template.ITag.__ParameterList(); //line: 8
	_pl.add("","/index.html"); //line: 8
		__invokeTag(8, "url", _pl, false); //line: 8
} //line: 8
p("\">返回</a>\n</div>"); //line: 9

		return this;
	}

}
